package com.github.icloudpay.crm.core.rest;

import com.github.wxiaoqi.security.common.rest.BaseController;
import com.github.icloudpay.crm.core.biz.OrderHunterBiz;
import com.github.icloudpay.crm.core.entity.OrderHunter;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 猎手订单
 * @author Administrator
 *
 */
@Controller
@RequestMapping("admin/orderHunter")
public class OrderHunterController extends BaseController<OrderHunterBiz,OrderHunter> {
	
	private static final Logger logger = LoggerFactory.getLogger(OrderHunterController.class);
	@Autowired
	private OrderHunterBiz orderHunterBiz;
	
	
	/**
	 * 查询悬赏订单列表
	 * @param map
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/getOrderList", method = RequestMethod.POST)
	public Map<String, Object> queryOrderHunterList(Map<String, Object> map) {
		logger.info("查询悬赏订单列表，请求参数。。。{}"+map);
		Map<String, Object> respMap = orderHunterBiz.queryOrderList(map);
		logger.info("查询悬赏订单列表，响应参数。。。{}"+respMap);
		return respMap;
	}
	
	
	
	
	/**
	 * 导出悬赏订单列表
	 * @param map
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/exportOrderList", method = RequestMethod.POST)
	public Map<String, Object> exportOrderList(Map<String, Object> map) {
		logger.info("导出悬赏订单列表，请求参数。。。{}"+map);
		Map<String, Object> respMap = orderHunterBiz.queryOrderList(map);
		
		
		
		
		
		
		
		
		logger.info("导出悬赏订单列表，响应参数。。。{}"+respMap);
		return respMap;
	}
	
}